package com.yn.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.yn.common.model.zy.OrganDepartment;
import com.yn.common.request.sc.PageParamRequest;
import com.yn.common.request.zy.OrganDepartmentQueryRequest;
import com.yn.common.request.zy.OrganDepartmentRequest;
import com.yn.common.response.zy.OrganDepartmentTreeResponse;

import java.util.List;


/**
 * <p>
 * 医院科室 服务类
 * </p>
 *
 * @author xuquanjun
 * @since 2025-07-10
 */
public interface IOrganDepartmentService extends IService<OrganDepartment> {


    /**
     * 添加医院科室信息
     * @param request 医院科室新增对象
     * @return
     */
    void saveDepartmentInfo(OrganDepartmentRequest request);

    /**
     * 删除医院科室信息
     * @param id 科室id
     * @return
     */
    void deleteDepartmentInfo(Integer id);

    /**
     * 修改医院科室信息
     * @param request 医院科室修改对象
     * @return
     */
    void updateDepartmentInfo(OrganDepartmentRequest request);

    /**
     * 获取科室树状图
     * @return List<OrganDepartmentTreeResponse> 科室树状图
     */
    List<OrganDepartmentTreeResponse> getListTree();

    /**
     * 获取科室信息分页列表
     *
     * @param request     查询条件
     * @param pageRequest 分页条件
     * @return BaseResult<BasePage < OrganDepartmentDTO>>
     */
    PageInfo<OrganDepartmentTreeResponse> getPageList(OrganDepartmentQueryRequest request, PageParamRequest pageRequest);

    /**
     * 获取科室详情
     * @param id Integer 科室id
     * @return BaseResult<OrganDepartment> 科室详情
     */
    OrganDepartmentTreeResponse getInfoById(Integer id);
}
